﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace Sbook.Data
{
    public class UomInfo
    {
        private string uomId;

        public string UomId
        {
            get { return uomId; }
            set { uomId = value; }
        }

        private string uomName;

        public string UomName
        {
            get { return uomName; }
            set { uomName = value; }
        }

        public UomInfo UomIDataReader(IDataReader dr)
        {
            Data.UomInfo obj = new Data.UomInfo();
            obj.UomId = (dr["UomId"] is DBNull) ? string.Empty : dr["UomId"].ToString();
            obj.UomName = (dr["UomName"] is DBNull) ? string.Empty : dr["UomName"].ToString();
           
            return obj;
        }
    }
}